Release 10.1A: OpenEdge Development:
Web Services
Client method call to SOAP request/response message pair (run time)
This is a sample VB.NET method call to the
FindCustomerByNum( )method defined in the client interface, where theOrderInfoAppObject instance on which the method is called is namedwebService:
Thus, the call passes a value of 3 for the
CustomerNumberparameter as input and receives the value returned by theCustomerNameoutput parameter in a variable that happens also to be namedCustomerName.This is the SOAP request message sent out by the client after invoking the
FindCustomerByNum( )method. You can see that the value (3) for the input parameter,CustomerNumber, is passed in the SOAP message body.Note that the AppObject ID for
OrderInfois sent along in the SOAP header (<UUID>element). .NET sends the AppObject ID automatically. For other client platforms, you have might have to code this information into the SOAP message before it is sent:
For more information on how object IDs are defined, obtained, and sent in SOAP messages, see the "Retrieving and sending object IDs—handling SOAP headers" section.
This is the SOAP response message returned by the WSA with the value (
"Hoops") for the output parameter,CustomerName:
If an error occurred at any point after the SOAP request message was received by the WSA, a SOAP fault message would be returned instead of the SOAP response message shown in the example. For information on SOAP fault messages returned for a method, see the "Handling Web service errors and SOAP faults" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |